import { routerGuard } from "@/api/waterloo";
import { SucMessage } from "@suc/ui";
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./services";
import "./styles/index.scss";
import "./utils/init";
import plugin from "./utils/suc-plugin";
import "@suc/ui/styles/index.scss";
import echarts from "echarts";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "./plugins/iview.js";
import ViewUI from "view-design";
import "view-design/dist/styles/iview.css";
Vue.use(ViewUI);

Vue.use(ElementUI);
Vue.use(plugin);
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
Vue.prototype.$SucMessage = SucMessage;

// 未登录时重定向到login页面
// routerGuard(router);

new Vue({
    router,
    store,
    render: (h: any) => h(App),
}).$mount("#app");
